﻿// JScript File

        function AddMoreImages()  
        { 
            if (!document.getElementById && !document.createElement) 
                return false; 
            var fileUploadarea = document.getElementById("up"); 
            if (!fileUploadarea) 
                return false; 
            var newLine = document.createElement("br"); 
            fileUploadarea.appendChild(newLine); 
            var newFile = document.createElement("input"); 
            newFile.type = "file"; 
            newFile.setAttribute("class", "fileUpload");  
            if (!AddMoreImages.lastAssignedId) 
                AddMoreImages.lastAssignedId = 100; 
            newFile.setAttribute("id", "FileUpload" + AddMoreImages.lastAssignedId); 
            newFile.setAttribute("name", "FileUpload" + AddMoreImages.lastAssignedId); 
            var div = document.createElement("div"); 
            div.appendChild(newFile); 
            div.setAttribute("id", "div" + AddMoreImages.lastAssignedId); 
            fileUploadarea.appendChild(div); 
            AddMoreImages.lastAssignedId++; 
        }   



